package action.tempalate;

import action.tempalate.vo.Account;

/**
 * @author
 * @version $ Id: SavingAccount, v 0.1 2023/03/21 22:25 banma-0369 Exp $
 */
public class SavingAccount extends BaseAccount{

    public SavingAccount(Account account) {
        super(account);
    }

    @Override
    public boolean verify() {
        if ("root".equals(account.getUsername())&&"root".equals(account.getPassword()) ){
            return true;
        }
        return false;
    }

    @Override
    void CalculateInterest() {
        account.setAccount(account.getAccount()*2);
    }
}
